package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.marktotop.pojo.Goods;
import com.marktotop.vo.GoodsVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MarkToTop
 * @since 2021-06-18
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 查询商品列表
     *
     * @return
     */
    List<GoodsVO> findGoodsList();


    /**
     * 通过 goodsId 查询商品详情
     *
     * @param goodsId
     * @return
     */
    GoodsVO getDetailByGoodsId(Long goodsId);
}
